package com.example.demo.Course;

import java.util.ArrayList;
import java.util.List;

public class CourseList {
    List<Course> courses;
    public CourseList() {
        courses = new ArrayList<Course>();
        Course  c1=new Course(1,"数学");
        Course  c2=new Course(2,"语文");
        Course  c3=new Course(3,"英语");
        courses.add(c1);
        courses.add(c2);
        courses.add(c3);
    }

    public List<Course> getCourses() {
        return courses;
    }
}
